import Mock from 'mockjs'

// 字符串代表全匹配
// Mock.mock('https://wwts.yzjtech.com/prod_api/exam-paper/list',function (){
//     console.log('被拦截的')
// })

// 正则代表模糊匹配
Mock.mock(/exam-paper\/list/,function (config){
    return {
        data:{
            config,
            data:{
                code:200,
                tableData:[
                    {
                        key: '1',
                        name: '胡彦斌',
                        age: 32,
                        address: '西湖区湖底公园1号',
                    },
                    {
                        key: '2',
                        name: '胡彦祖',
                        age: 42,
                        address: '西湖区湖底公园1号',
                    },
                ]
            }
        }
    }
})
